﻿<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:Moonwish.Silverlight.OsAvatar.Windows">
<Style TargetType="local:CaptionBar">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="local:CaptionBar">
                    <Border Grid.Row="0" 
									CornerRadius="2,2,0,0" 
									x:Name="PART_CaptionBar" 
									VerticalAlignment="Stretch" 
									Cursor="Hand">
                        <Border.Background>
                            <RadialGradientBrush GradientOrigin="0.999,1.671" Center="0.502,0.653" RadiusX="0.768" RadiusY="0.912">
                                <RadialGradientBrush.RelativeTransform>
                                    <CompositeTransform CenterY="0.653" CenterX="0.502" Rotation="-4.609" TranslateX="-0.003"/>
                                </RadialGradientBrush.RelativeTransform>
                                <GradientStop Color="White" Offset="0.002"/>
                                <GradientStop Color="#FF3E9CD0" Offset="1"/>
                            </RadialGradientBrush>
                        </Border.Background>
                        <StackPanel Orientation="Horizontal">
                            <Image x:Name="PART_CaptionIcon" Source="{TemplateBinding Favicon}" Width="20" Height="20" Margin="4,0,0,0"/>
                            <TextBlock x:Name="PART_CaptionText"
                                       Text="{TemplateBinding Caption}"
										    Foreground="White" 
										    FontSize="12" FontFamily="Arial"
										    Margin="5,0,0,0" VerticalAlignment="Center" />
                        </StackPanel>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
</ResourceDictionary>
